﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package reprise.data.validators {
    import reprise.commands.*;
    import reprise.data.*;

    public class RegExpValidator extends AbstractCommand implements IValidator {

        protected var m_regexp:RegExp;
        protected var m_value;

        public function RegExpValidator(_arg1:String){
            var _local2:Array = _arg1.substr(1).split("/");
            var _local3:String = _local2[0];
            var _local4:String = ((_local2[1]) || (""));
            m_regexp = new RegExp(_local3, _local4);
        }
        override public function execute(... _args):void{
            m_didSucceed = m_regexp.test(m_value);
        }
        public function setValue(_arg1):void{
            m_value = _arg1;
        }
        public function value(){
            return (m_value);
        }

    }
}//package reprise.data.validators 
